package com.soft.javase.day02.practice.override;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/16
 */
public class Director extends Employee{
    private double transportMoney;

    public Director(String name, String address, double baseSalary, double transportationAllowance) {
        super(name, address, baseSalary);
        this.transportMoney = transportationAllowance;
    }

    public double getTransportMoney() {
        return this.transportMoney;
    }

    public void setTransportMoney(double transportMoney) {
        this.transportMoney = transportMoney;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("TransportMoney: " + this.transportMoney);
    }
}
